<template>
	<div class="content">
		<van-tabs v-model="active" color="#F17F2A" sticky title-inactive-color="#646464" title-active-color="#000000">
			<van-tab title="门票">
				<ticketList />
			</van-tab>
			<van-tab title="活动">
				<activelist />
			</van-tab>
			<van-tab title="课程">
				<van-empty description="暂无课程预约" />
			</van-tab>
		</van-tabs>
	</div>
</template>

<script>
	import activelist from '../active/activelist'
	import ticketList from '../orderTicket/ticketList'

	export default {
		name: "myorder",
		data() {
			return {
				active: 0
			}
		},
		components: {
			activelist,
			ticketList

		},
		created() {
			if (this.$route.query.api_token) {
				localStorage.setItem('api_token', this.$route.query.api_token);
			}
		}
	}
</script>

<style scoped>
.content{
	background-color: #EEEEEE;
	min-height: 100vh;
}
</style>
